package com.csl.jsonpreference.test

import com.csl.jsonpreference.bean.ConfigTYPE
import com.csl.jsonpreference.tag.Configurable

/**
 * aqua car 设备本地配置.
 */
@Configurable(discribe = "马达端口设置")
class AquaCarMotorConfig  {

    @Configurable(discribe = "端口1", type = ConfigTYPE.NUMBER, index = 0)
    var port1: Int = 0

    @Configurable(discribe = "端口2", type = ConfigTYPE.NUMBER, index = 1)
    var port2: Int = 0


    override fun toString(): String {
        return "($port1, $port2)"
    }
}